﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp.MultiTenancy;

namespace Himp.Platform
{
    /// <summary>
    /// 编码历史
    /// </summary>
    public class CodgHistory : Entity<Guid>, IMultiTenant
    {
        /// <summary>
        /// 编码
        /// </summary>
        public string Codg { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid CodgDictId { get; set; }

        /// <summary>
        /// 分类编码
        /// </summary>
        public CodgDict CodgDict { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? TenantId { get; set; }

        public CodgHistory()
        { 
        
        }

        public CodgHistory(string codg, Guid codgDictId)
        {
            Codg= codg;
            CodgDictId= codgDictId;
            CreationTime = DateTime.Now;
        }
    }
}
